package common

import "seven-admin/app/collection"

// Album 相册实体
type Album struct {
	collection.Model
	Cid      uint   `gorm:"not null;default:0;comment:'类目ID'"`
	Aid      uint   `gorm:"not null;default:0;comment:'管理ID'"`
	Uid      uint   `gorm:"not null;default:0;comment:'用户ID'"`
	Type     int    `gorm:"not null;default:10;comment:'文件类型: [10=图片, 20=视频]''"`
	Name     string `gorm:"not null;default:'';comment:'文件名称''"`
	Uri      string `gorm:"not null;comment:'文件路径'"`
	Ext      string `gorm:"not null;default:'';comment:'文件扩展'"`
	Size     int64  `gorm:"not null;default:0;comment:文件大小"`
	TenantId uint   `gorm:"not null;default:0;comment:'创建人'"`
	collection.SoftDelete
}

// AlbumCate 相册分类实体
type AlbumCate struct {
	collection.Model
	Pid      uint   `gorm:"not null;default:0;comment:'父级ID'"`
	Type     int    `gorm:"not null;default:10;comment:'文件类型: [10=图片, 20=视频]''"`
	Name     string `gorm:"not null;default:'';comment:'分类名称''"`
	TenantId uint   `gorm:"not null;default:0;comment:'创建人'"`
	collection.SoftDelete
}
